from trytond.model import ModelView, ModelSQL, ModelSingleton, fields
from trytond.pyson import Eval


class Configuration(ModelView,ModelSQL,ModelSingleton):
    "Ticket Configuration"
    _name = "ticket.configuration"
    ticket_sequence = fields.Property(fields.Many2One('ir.sequence',"Sequence Ticket",
            domain = [
                ('company','in',[Eval('company',False)]),
                ('code','=','ticket.ticket')
            ], required = True
        ))

Configuration()
